package cn.edu.ctbu.labtest.dao;

import cn.edu.ctbu.labtest.domain.Sc;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 科目成绩仓库接口
 */
public interface ScRepository extends JpaRepository<Sc,Integer>{
    Page<Sc> findScByNameLike(String name, Pageable pageable);

    List<Sc> findScByName(String name);
}

